public class Cylinder {
    public double radius;
    public double height;
    public double squaring;
    public double cube;
    public void squaring(){
        System.out.println( "圆柱体的表面积为"+squaring ) ;
    }
    public void cube(){
        System.out.println( "圆柱体的体积为"+cube) ;
    }
    public static void main(String[] args) {
        Cylinder c=new Cylinder();
        c.radius = 20 ;
        c.height = 20 ;
        c.squaring=2*3.14*c.radius*c.radius+2*3.14*c.radius*c.height;
        c.cube=3.14*c.radius*c.radius*c.height;
        c.squaring();
        c.cube();
        
        
    }
    
}